﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace WinTime.Core.Models.Config;

/// <summary>
/// 常规
/// </summary>
public class GeneralModel
{
    /// <summary>
    /// 是否启用开机自启动
    /// </summary>
    public bool IsStartatboot
    {
        get; set;
    }

    /// <summary>
    /// 主题模式
    /// </summary>
    public int Theme { get; set; } = 0;
    /// <summary>
    /// 主题颜色
    /// </summary>
    public string ThemeColor { get; set; } = "#2b20d9";
    /// <summary>
    /// 是否保留界面大小
    /// </summary>
    public bool IsSaveWindowSize { get; set; } = false;
    /// <summary>
    /// 窗口宽度
    /// </summary>
    public double WindowWidth { get; set; } = 815;
    /// <summary>
    /// 窗口高度
    /// </summary>
    public double WindowHeight { get; set; } = 585;

    /// <summary>
    /// 启动页选择
    /// </summary>
    public int StartPage { get; set; } = 0;
    /// <summary>
    /// 概览页最为频繁显示条数
    /// </summary>
    public int IndexPageFrequentUseNum { get; set; } = 2;
    /// <summary>
    /// 概览页最为频繁显示条数
    /// </summary>
    public int IndexPageMoreNum { get; set; } = 11;

    /// <summary>
    /// 是否启用网站记录功能
    /// </summary>    
    public bool IsWebEnabled { get; set; } = false;
}